import request from '@/utils/request'

// 查询漂流瓶列表
export function listBottle(query) {
  return request({
    url: '/system/bottle/list',
    method: 'get',
    params: query
  })
}

// 查询漂流瓶详细
export function getBottle(id) {
  return request({
    url: '/system/bottle/' + id,
    method: 'get'
  })
}

// 新增漂流瓶
export function addBottle(data) {
  return request({
    url: '/system/bottle',
    method: 'post',
    data: data
  })
}

// 修改漂流瓶
export function updateBottle(data) {
  return request({
    url: '/system/bottle',
    method: 'put',
    data: data
  })
}

// 删除漂流瓶
export function delBottle(id) {
  return request({
    url: '/system/bottle/' + id,
    method: 'delete'
  })
}
